package com.company.day2;
/*打印图案
1 2 3 4 5 6
  1 2 3 4 5
    1 2 3 4
      1 2 3
        1 2
          1
**/
public class PrintP4 {
    public static void main(String[] args) {
        //定义行数i
        for(int i = 1; i < 7; i++){
            //定义列输出，从左到右，小于i的输出空格，大于等于i的输出相应的值j-i+1
            for(int j = 1; j <= 6; j++){
                if( j < i ){
                    System.out.print( "  ");
                }else{
                    System.out.print(String.valueOf(j-i+1) + " ");
                }
            }
            System.out.println();
        }
    }
}
